from random import randint
# all leaps less than n
n = randint(1, 1024)
leaps = []


def leap(x):
    for i in leaps:
        if x % i == 0:
            return 0
    return 1


for i in range(2, n):
    if leap(i):
        leaps.append(i)

print(leaps)
